//
//  DCLoanDetialCell.m
//  Demo
//
//  Created by Kyle on 2023/1/2.
//

#import "DCLoanDetialCell.h"


@interface DCLoanDetialCell ()

@property (nonatomic, strong) UILabel *leftLabel;

@property (nonatomic, strong) UILabel *rightLabel;

@end
@implementation DCLoanDetialCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self configureUI];
    }
    return self;
}

- (void)configureData:(NSDictionary *)dic {
    _leftLabel.text = dic[@"leftText"];
    _rightLabel.text = dic[@"rightText"];
}

- (void)configureUI {
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.backgroundColor = [UIColor colorWithString:@"#FFFFFF"];
    _leftLabel = [UILabel new];
    _leftLabel.text = @"#leftTitle";
    _leftLabel.font = DCFont_PF_Regular(12);
    _leftLabel.textColor = [UIColor colorWithString:@"#C7C7C7"];
    [self.contentView addSubview:_leftLabel];
    [_leftLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(42);
        make.centerY.mas_equalTo(self.contentView);
    }];
    
    _rightLabel = [UILabel new];
    _rightLabel.text = @"#_rightLabel";
    _rightLabel.font = DCFont_PF_Regular(13);
    _rightLabel.textColor = [UIColor colorWithString:@"#1C221B"];
    [self.contentView addSubview:_rightLabel];
    [_rightLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-42);
        make.centerY.mas_equalTo(self.contentView);
    }];
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
